package wqh.service;

import wqh.domain.Sensor;

import java.util.List;

/**
 * Created by devts on 2016/9/26.
 */
public interface SensorService {

    List<Sensor> findAllRecord();

    String findNameByID(Integer id);

    Sensor findAllByID(Integer id);

    int insertRecord(Sensor sensor);

    int updateRecord(Sensor sensor);

    int deleteRecord(Integer id);

    int insertRecordSample(String name, Integer type);

    int insertRecordOld(Sensor sensor);

    int updateRecordOld(Sensor sensor);

    int updateNameById(String name, Integer id);
}
